{block #content}

<div><a href="{link ModulesManagement:default}" class="button ui-state-default ui-corner-all" id="backToModulesManagement">
<span class="ui-icon ui-icon-carat-1-w floatLeft">&nbsp;</span> &nbsp;{!_"Back to Modules Management"}</a></div>

    <h1>{$title}</h1>
    
    <ul class="pageMenu">
    {foreach $implementations as $implementation}
        <li>
            {$implementation->getName()}
            <br />
            
            {if ($implementation->isInstalled())}
                <strong>Installed: </strong>
                {if ($implementation->getInstalledVersion() == null)}
                    ---
                {else}
                    {$implementation->getInstalledVersion()}
                {/if}
                <br />
                <strong>Latest: </strong>{if ($implementation->getLatestVersion() == null)}
                    ---
                {else}
                    {$implementation->getLatestVersion()}
                {/if}
                <hr />
      
                {if ($implementation->isLatestVersion() || $implementation->getInstalledVersion() == "unversioned")}
                    <strong>up to date</strong>
                    <img src="{$basePath}/images/kernel/default.jpg"
                        alt="{$implementation->getFullNameDots()}"
                        width="120"/>
                    {$implementation->getName()}
                
                    <hr />
                <a id="uninstall_application" href='{link ModulesManagement:uninstall $implementation->getFullNameDots()}'>
                        uninstall
                </a>
                {else}
                    <a href='{link ModulesManagement:upgrade $implementation->getFullNameDots()}'>
                        <strong>upgrade</strong>
                        <img src="{$basePath}/images/kernel/default.jpg"
                            alt="{$implementation->getFullNameDots()}"
                            width="120"/>
                        {$implementation->getName()}
                    </a>
                    <hr />  
                    <a id="uninstall_application" href='{link ModulesManagement:uninstall $implementation->getFullNameDots()}'>
                            uninstall
                    </a>
                {/if}
                
            {else}
                <a href='{link ModulesManagement:install $implementation->getFullNameDots()}'>
                    <strong>install</strong>
                    <img src="{$basePath}/images/kernel/default.jpg"
                        alt="{$implementation->getFullNameDots()}"
                        width="120"
                        style="opacity:0.4;filter:alpha(opacity=40)"/>

                    {$implementation->getName()}
                </a>

                <hr />
            {/if}
                       
        </li>
    {/foreach}
    </ul>

{/block}